<template>
  <div class="login-btn">
    <button class="sign-in" @click="handleLogin">登录</button>
    <button class="sign-up" @click="handleRegister">注册</button>
  </div>
</template>
<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const handleLogin = () => {
  router.push({ path: 'login' })
}
const handleRegister = () => {
  router.push({ path: 'register' })
}
</script>

<style lang="less" scoped>
@import './styles/nologin.css';
</style>
